package de.fstyle.android.worldcanvas;

import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.MotionEvent;

public class LimitedAreaViewPager extends ViewPager {

	public static final String TAG = "pager";
	
	public LimitedAreaViewPager(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public LimitedAreaViewPager(Context context) {
		super(context);
	}
	
	
	
	@Override
	public boolean onInterceptTouchEvent(MotionEvent arg0) {

//		Log.d(TAG, "InterceptTouch: " + arg0.getAction());
//		Log.d(TAG, "InterceptTouch: " + arg0.getX());
//		Log.d(TAG, "InterceptTouch - Edge: " + arg0.getEdgeFlags());

		return super.onInterceptTouchEvent(arg0);
		
	}
	
	@Override
	public boolean onTouchEvent(MotionEvent arg0) {

//		Log.d(TAG, "Touch - X: " + arg0.getX());
//		Log.d(TAG, "Touch - ACTION: " + arg0.getAction());
		
		return super.onTouchEvent(arg0);
	}
	
//	public boolean isValidArea(MotionEvent motionEvent) {
//		if (motionEvent.getX() > 600) {
//			return true;
//		} else {
//			return false;
//		}
//	}

}
